﻿using Currency.Infra.Helper;

namespace Currency.Infra.Caching.Configurations
{
    /// <summary>
    /// 连接配置
    /// </summary>
    public class EndPoints
    {
        public EndPoints(string host, int port)
        {
            ArgumentCheck.NotNullOrWhiteSpace(host, nameof(host));

            Host = host;
            Port = port;
        }

        /// <summary>
        /// 端口
        /// </summary>
        /// <value>The port.</value>
        public int Port { get; set; } = 6379;

        /// <summary>
        /// ip或域名
        /// </summary>
        /// <value>The host.</value>
        public string Host { get; set; }
    }
}
